package com.ruoyi.wq.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.mybatis.base.BaseEntity;

/**
 * 话题对象 wq_topic
 * 
 * @author ruoyi
 * @date 2022-06-17
 */
public class WqTopic extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.UUID)
    private String id;

    /** 话题标题 */
    @Excel(name = "话题标题")
    private String title;

    /** 简介 */
    @Excel(name = "简介")
    private String topicDesc;

    /** 话题封面 */
    @Excel(name = "话题封面")
    private String image;

    /** 动态数量 */
    @Excel(name = "动态数量")
    private Long giveNum;

    /** 关注数量 */
    @Excel(name = "关注数量")
    private Long fansNum;
    
    /** 需要趣币 */
    @Excel(name = "需要趣币")
    private Integer coinNum;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;
    
    /** 是否热门（0否 1是） */
    @Excel(name = "是否热门（0否 1是）")
    private Boolean hot;
    
    /** 创建人 */
    private Long userId;
    
    /** 评论人头像 */
    private String avatar;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    
    public String getTopicDesc() {
		return topicDesc;
	}

	public void setTopicDesc(String topicDesc) {
		this.topicDesc = topicDesc;
	}

	public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setGiveNum(Long giveNum) 
    {
        this.giveNum = giveNum;
    }

    public Long getGiveNum() 
    {
        return giveNum;
    }
    public void setFansNum(Long fansNum) 
    {
        this.fansNum = fansNum;
    }

    public Long getFansNum() 
    {
        return fansNum;
    }
    
    public Integer getCoinNum() {
		return coinNum;
	}

	public void setCoinNum(Integer coinNum) {
		this.coinNum = coinNum;
	}

	public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public Boolean getHot() {
		return hot;
	}

	public void setHot(Boolean hot) {
		this.hot = hot;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("topicDesc", getTopicDesc())
            .append("image", getImage())
            .append("giveNum", getGiveNum())
            .append("fansNum", getFansNum())
            .append("sort", getSort())
            .append("status", getStatus())
            .append("hot", getHot())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
